#include "datamanager.h"
#include <QDebug>

DataManager::DataManager(QObject *parent) : QObject(parent)
{

}

const QString &DataManager::name() const
{
    qDebug() << "name(): " << m_name;
    return m_name;
}

void DataManager::setName(const QString &newName)
{
    if (m_name == newName)
        return;
    m_name = newName;
    qDebug() << "setName():" << newName;
    emit nameChanged();
}
